package inheritance;

class Human {
    public String name;

    public void show(){
        System.out.println( this.name );
    }
}

public class Sinaean extends Human{
    public int age;

    public void introduce(){
        System.out.println( "我叫" + this.name + ", 今年" + this.age + "岁" );
    }

    public static void main(String[] args) {
        Sinaean s = new Sinaean();
        s.name = "蒋嘉豪";
        s.age = 21;

        s.show();//mian 调用 s 的 show 方法, show 方法在 父类Human中
        s.introduce();
    }

}
